package com.woniu.order.common;


import com.woniu.result.ResultCode;

public enum OrderResultCode implements ResultCode {

    USER_STATUS_ABNORMAL(1003, "用户状态异常"),
    PRODUCT_QUERY_ABNORMAL(1004, "商品查询异常"),
    PRODUCT_STATE_ABNORMAL(1005, "商品状态异常"),
    PRODUCT_COUNT_UNDERSTOCK(1006, "商品库存不足"),
    ADDRESS_QUERY_ABNORMAL(1007, "地址查询异常"),
    COUPON_HAVE_NOT_OWNED(1008, "未拥有优惠券"),
    COUPON_CANT_ADD_UP(1009, "不能叠加优惠券"),
    COUPON_NOT_APPLICABLE(1010, "优惠券不适用"),
    COUPON_FAR_FROM_FULLMONEY(1011, "订单价格未达到优惠券满减金额"),
    PRODUCT_CANT_USE_COUPON(1012, "订单商品不能使用优惠券"),
    COUPON_HAS_BEEN_USED(1013,"优惠券已被使用");

    private int code;
    private String message;

    private OrderResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
